import { defineStore } from "pinia";

// 用户成功登录后的数据
export const userStore = defineStore("userStore", {
  state: () => {
    return {
      userId: "",
      nickName: ""
    };
  },
  getters: {
    getUserId(state){
        return state.userId;
    }
  },
  actions: {
    setUserId(userId: string) {
        this.userId = userId;
    }
  },
});